package com.pai4j.ugc.repository.dao;
import com.pai4j.ugc.repository.entity.MomentMediaEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface IMomentMediaDAO extends JpaSpecificationExecutor<MomentMediaEntity>,
        JpaRepository<MomentMediaEntity, Long> {



    List<MomentMediaEntity> findAllByMomentIdAndType(Long momentId, Integer type);

    List<MomentMediaEntity> findAllByMomentId(Long momentId);

}
